package com.hysf.di.pro1_value_annotation;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class Product {
	@Value("${pid}")
	private int pid;
	@Value("${name}")
	private String name;
	@Value("${price}")
	private double price;
}
